(function(){
	Ext.onReady(function(){
		var treeStore = Ext.create("Ext.data.TreeStore",{
			root:{
				expanded:true,
				text:'根节点',
				children:[
				{text:'节点1',leaf:true},
				{text:'节点2',expanded:true,children:[
				{text:'节点2.1',leaf:true}
				]}
				]
			}
		});
		Ext.create("Ext.tree.Panel",{
			title: 'Simple Tree',
   			width: 200,
    		height: 150,
    		rootVisible:true,
    		renderTo:'tree',
    		store:treeStore
		});
	});
})();